/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.portlet.donggoi.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link quytrinhDG}.
 * </p>
 *
 * @author    Thi
 * @see       quytrinhDG
 * @generated
 */
public class quytrinhDGWrapper implements quytrinhDG, ModelWrapper<quytrinhDG> {
	public quytrinhDGWrapper(quytrinhDG quytrinhDG) {
		_quytrinhDG = quytrinhDG;
	}

	public Class<?> getModelClass() {
		return quytrinhDG.class;
	}

	public String getModelClassName() {
		return quytrinhDG.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("maQuyTrinhDG", getMaQuyTrinhDG());
		attributes.put("tenQuyTrinh", getTenQuyTrinh());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		String maQuyTrinhDG = (String)attributes.get("maQuyTrinhDG");

		if (maQuyTrinhDG != null) {
			setMaQuyTrinhDG(maQuyTrinhDG);
		}

		String tenQuyTrinh = (String)attributes.get("tenQuyTrinh");

		if (tenQuyTrinh != null) {
			setTenQuyTrinh(tenQuyTrinh);
		}
	}

	/**
	* Returns the primary key of this quytrinh d g.
	*
	* @return the primary key of this quytrinh d g
	*/
	public java.lang.String getPrimaryKey() {
		return _quytrinhDG.getPrimaryKey();
	}

	/**
	* Sets the primary key of this quytrinh d g.
	*
	* @param primaryKey the primary key of this quytrinh d g
	*/
	public void setPrimaryKey(java.lang.String primaryKey) {
		_quytrinhDG.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the ma quy trinh d g of this quytrinh d g.
	*
	* @return the ma quy trinh d g of this quytrinh d g
	*/
	public java.lang.String getMaQuyTrinhDG() {
		return _quytrinhDG.getMaQuyTrinhDG();
	}

	/**
	* Sets the ma quy trinh d g of this quytrinh d g.
	*
	* @param maQuyTrinhDG the ma quy trinh d g of this quytrinh d g
	*/
	public void setMaQuyTrinhDG(java.lang.String maQuyTrinhDG) {
		_quytrinhDG.setMaQuyTrinhDG(maQuyTrinhDG);
	}

	/**
	* Returns the ten quy trinh of this quytrinh d g.
	*
	* @return the ten quy trinh of this quytrinh d g
	*/
	public java.lang.String getTenQuyTrinh() {
		return _quytrinhDG.getTenQuyTrinh();
	}

	/**
	* Sets the ten quy trinh of this quytrinh d g.
	*
	* @param tenQuyTrinh the ten quy trinh of this quytrinh d g
	*/
	public void setTenQuyTrinh(java.lang.String tenQuyTrinh) {
		_quytrinhDG.setTenQuyTrinh(tenQuyTrinh);
	}

	public boolean isNew() {
		return _quytrinhDG.isNew();
	}

	public void setNew(boolean n) {
		_quytrinhDG.setNew(n);
	}

	public boolean isCachedModel() {
		return _quytrinhDG.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_quytrinhDG.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _quytrinhDG.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _quytrinhDG.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_quytrinhDG.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _quytrinhDG.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_quytrinhDG.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new quytrinhDGWrapper((quytrinhDG)_quytrinhDG.clone());
	}

	public int compareTo(com.portlet.donggoi.model.quytrinhDG quytrinhDG) {
		return _quytrinhDG.compareTo(quytrinhDG);
	}

	@Override
	public int hashCode() {
		return _quytrinhDG.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.portlet.donggoi.model.quytrinhDG> toCacheModel() {
		return _quytrinhDG.toCacheModel();
	}

	public com.portlet.donggoi.model.quytrinhDG toEscapedModel() {
		return new quytrinhDGWrapper(_quytrinhDG.toEscapedModel());
	}

	public com.portlet.donggoi.model.quytrinhDG toUnescapedModel() {
		return new quytrinhDGWrapper(_quytrinhDG.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _quytrinhDG.toString();
	}

	public java.lang.String toXmlString() {
		return _quytrinhDG.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_quytrinhDG.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof quytrinhDGWrapper)) {
			return false;
		}

		quytrinhDGWrapper quytrinhDGWrapper = (quytrinhDGWrapper)obj;

		if (Validator.equals(_quytrinhDG, quytrinhDGWrapper._quytrinhDG)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public quytrinhDG getWrappedquytrinhDG() {
		return _quytrinhDG;
	}

	public quytrinhDG getWrappedModel() {
		return _quytrinhDG;
	}

	public void resetOriginalValues() {
		_quytrinhDG.resetOriginalValues();
	}

	private quytrinhDG _quytrinhDG;
}